package com.zhiyin.seal.util;

import com.itextpdf.text.Paragraph;
import com.itextpdf.text.Phrase;
import com.itextpdf.text.pdf.PdfPCell;

public class MyPdfPcell extends PdfPCell {
    public MyPdfPcell(Boolean isTitle, Phrase phrase){
        super(phrase);
        if(isTitle){
            this.setHorizontalAlignment(Paragraph.ALIGN_CENTER);
        } else {
            this.setHorizontalAlignment(Paragraph.ALIGN_LEFT);
        }

        this.setVerticalAlignment(Paragraph.ALIGN_CENTER);
        this.setPadding(7);
    }
}
